﻿@inherits NantCom.NancyBlack.Modules.ContentSystem.NancyBlackRazorViewBase
@{
    Layout = "_base.cshtml";
}

@section Head
{
    <link href="/Content/Views/Admin/admin.css" rel="stylesheet" />
    <link href="~/Content/Scripts/jsoneditor/jsoneditor.min.css" rel="stylesheet" />

    @RenderSection("Head", false)
}

@section Title
{
    @RenderSection("Title", false)
}

<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">

            </a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right" style="margin-right: 10px">
                <li class="mobonly"><a href="/modules/calendar.cshtml?standalone=1">Home</a></li>
            </ul>
        </div>
    </div>
</div>

<div class="container-fluid main">
    <div class="row">
        <div class="col-md-2">

            <ul class="nav nav-sidebar sidebar">
                <li><span>Tables</span></li>
                @foreach (var item in this.Model.SharedDatabase.DataType.RegisteredTypes)
                {
                    <li><a href="/SuperAdmin/Tables/@item.Name">@item.OriginalName</a></li>
                }
                <li><span>Administration</span></li>
                <li><a href="/SuperAdmin/Core/Tables">Manage Tables</a></li>
                <li><a href="/SuperAdmin/Core/Users">Administrators</a></li>
            </ul>
        </div>
        <div class="col-md-9">
            @RenderBody()
        </div>
    </div>
</div>

@section Scripts
{

    <script src="/Content/Scripts/jsoneditor/jsoneditor.min.js"></script>

    <script src="/Content/scripts/jQuery.FileDrop.js"></script>
    <script src="/Content/Views/Admin/admin-sharedmodules.js"></script>


    @RenderSection("Scripts", false)
}